import http from '@/utils/request'

//登录
export function login(userName, password) {
  return http({
    url: '/api/v1/auth/login',
    method: 'post',
    data: { userName, password },
  })
}
//注册
export function register(userName, password) {
  return http({
    url: '/api/v1/auth/reg',
    method: 'post',
    data: { userName, password },
  })
}
